cmake_minimum_required(VERSION 3.27)
project(HelloTest)

set(CMAKE_CXX_STANDARD 20)

#list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
#include(FindGTest)
#find_gtest(GTest)
set(GTEST_DIR "D:/Workspace/RuntimeProjects/googletest")
find_package(GTest REQUIRED CONFIG PATHS ${GTEST_DIR} NO_DEFAULT_PATH)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

set(DEMO_FILE
        src/demo/library.cpp
)

set(SRC_FILE
        src/segment_reduction/segment_reduction.cpp
)

set(TEST_FILE
        test/uss/test_uss.cpp
)

#add_library(HelloTest SHARED ${DEMO_FILE} ${SRC_FILE} ${TEST_FILE})
add_executable(HelloTest ${TEST_FILE})
target_link_libraries(HelloTest GTest::gtest GTest::gtest_main)